// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig, loadEnv } from "file:///E:/newWork/interior_crm_new/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.7_sass@1.81.0/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/newWork/interior_crm_new/node_modules/.pnpm/@vitejs+plugin-vue@5.2.0_vite@5.4.11_vue@3.5.13/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///E:/newWork/interior_crm_new/node_modules/.pnpm/@vitejs+plugin-vue-jsx@3.1.0_vite@5.4.11_vue@3.5.13/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import WindiCSS from "file:///E:/newWork/interior_crm_new/node_modules/.pnpm/vite-plugin-windicss@1.9.3_vite@5.4.11/node_modules/vite-plugin-windicss/dist/index.mjs";
import AutoImport from "file:///E:/newWork/interior_crm_new/node_modules/.pnpm/unplugin-auto-import@0.17.8_@vueuse+core@12.2.0/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/newWork/interior_crm_new/node_modules/.pnpm/unplugin-vue-components@0.26.0_vue@3.5.13/node_modules/unplugin-vue-components/dist/vite.js";
import { AntDesignVueResolver } from "file:///E:/newWork/interior_crm_new/node_modules/.pnpm/unplugin-vue-components@0.26.0_vue@3.5.13/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_import_meta_url = "file:///E:/newWork/interior_crm_new/vite.config.ts";
var env = loadEnv(process.env.NODE_ENV, process.cwd());
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    vueJsx({
      babelPlugins: [
        ["@babel/plugin-proposal-decorators", { legacy: true }],
        // vue 类写法
        // ['@babel/plugin-transform-flow-strip-types'],
        ["@babel/plugin-proposal-class-properties", { loose: true }]
        // Prop 装饰器 需要 否则导致报错
        // ['@babel/plugin-transform-class-static-block']
      ]
    }),
    WindiCSS(),
    AutoImport({
      resolvers: [AntDesignVueResolver({
        importStyle: false
      })]
    }),
    Components({
      resolvers: [AntDesignVueResolver({
        importStyle: false
      })]
    })
  ],
  base: "./",
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    host: "0.0.0.0",
    port: 5177,
    proxy: env.VITE_APP_PROXY_API ? {
      "/crm-prod-v2": {
        target: env.VITE_APP_PROXY_APIV2,
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/crm-prod-v2/, "")
      },
      "/crm-prod": {
        target: env.VITE_APP_PROXY_API,
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/crm-prod/, "")
      },
      "/ws": {
        target: "https://apis.map.qq.com/",
        changeOrigin: true
      }
    } : void 0
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxuZXdXb3JrXFxcXGludGVyaW9yX2NybV9uZXdcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkU6XFxcXG5ld1dvcmtcXFxcaW50ZXJpb3JfY3JtX25ld1xcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vRTovbmV3V29yay9pbnRlcmlvcl9jcm1fbmV3L3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXHJcblxyXG5pbXBvcnQgeyBkZWZpbmVDb25maWcsIGxvYWRFbnYgfSBmcm9tICd2aXRlJ1xyXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcclxuaW1wb3J0IHZ1ZUp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ICAvLyBbJ0BiYWJlbC9wbHVnaW4tdHJhbnNmb3JtLWNsYXNzLXN0YXRpYy1ibG9jayddXHJcbiAgICAgICAgICAgIF1cclxuICAgICAgICB9KSksXHJcbiAgICAgICAgV2luZGlDU1MoKSxcclxuICAgICAgICBBdXRvSW1wb3J0KHtcclxuICAgICAgICAgICAgcmVzb2x2ZXJzOiBbQW50RGVzaWduVnVlUmVzb2x2ZXIoe1xyXG4gICAgICAgICAgICAgICAgaW1wb3J0U3R5bGU6IGZhbHNlLFxyXG4gICAgICAgICAgICB9KV0sXHJcbiAgICAgICAgfSksXHJcbiAgICAgICAgQ29tcG9uZW50cyh7XHJcbiAgICAgICAgICAgIHJlc29sdmVyczogW0FudERlc2lnblZ1ZVJlc29sdmVyKHtcclxuICAgICAgICAgICAgICAgIGltcG9ydFN0eWxlOiBmYWxzZSxcclxuICAgICAgICAgICAgfSldLFxyXG4gICAgICAgIH0pLFxyXG4gICAgXSxcclxuICAgIGJhc2U6Jy4vJyxcclxuICAgIHJlc29sdmU6IHtcclxuICAgICAgICBhbGlhczoge1xyXG4gICAgICAgICAgICAnQCc6IGZpbGVVUkxUb1BhdGgobmV3IFVSTCgnLi9zcmMnLCBpbXBvcnQubWV0YS51cmwpKVxyXG4gICAgICAgIH1cclxuICAgIH0sXHJcbiAgICBzZXJ2ZXI6IHtcclxuICAgICAgICBob3N0OiAnMC4wLjAuMCcsXHJcbiAgICAgICAgcG9ydDogNTE3NyxcclxuICAgICAgICBwcm94eTogZW52LlZJVEVfQVBQX1BST1hZX0FQSSA/ICh7XHJcbiAgICAgICAgICAgICcvY3JtLXByb2QtdjInOiB7XHJcbiAgICAgICAgICAgICAgICB0YXJnZXQ6IGVudi5WSVRFX0FQUF9QUk9YWV9BUElWMixcclxuICAgICAgICAgICAgICAgIGNoYW5nZU9yaWdpbjogdHJ1ZSxcclxuICAgICAgICAgICAgICAgIHJld3JpdGU6IChwYXRoKSA9PiBwYXRoLnJlcGxhY2UoL15cXC9jcm0t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